package com.jcgyl.export.service;

import java.util.List;
import java.util.Map;

import com.jcgyl.export.entity.Department;
import com.jcgyl.export.util.entity.Result;

public interface DepartmentService {
	/**
	 * 查询所有岗位
	 */
	Map<String, Object> findAllDepartment(String departmentName, String parentName,int level, int pageSize, int pageIndex);
	// 查询总行数
	int findRowCount(String departmentName, String parentName,int level);
	
	// 查询所有的部门zTree树
	List<Department> findZtreeObject();
	/** 查询所有部门名称*/
	List<Department> findDepartmentName();

	/**添加客户*/
	Result  addDepartment(Department department);
	/**修改客户*/
	Result  updateDepartment(Department department);
	/**删除客户*/
	Result  deleteDepartment(int departmentId);
}
